<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[TITLE]</title>
<link rel="stylesheet" href="[CSS_URL]" type="text/css" media="all" />
</head>

<body><?if(!$USER_LOGGED_IN$)?><style type="text/css"> 
#panel { 
   position: fixed; 
   width: 100%; 
   height: 42px; 
   background: #59a6f5; 
} 

#panel input { 
   margin-top: 10px; 
   border: 1px solid #555; 
   background: #FFF; 
} 

#panel a { 
   font: normal normal bold 11px/13.2px Tahoma; 
   margin-top: 10px; 
   color: #FFF; 
} 

#panel a:hover { 
   text-decoration: underline; 
} 
</style> 
<div id="panel" align="center"> 
   <input type="text" id="user" /> 
   <input type="password" id="password" /> 
   <input type="button" id="sbm" value="" /> 
   <a href="javascript://" onclick="new _uWnd('Prm',' ',300,130,{autosize:1,closeonesc:1},{url:'/index/5'});return false;"> 
      
   </a> 
   | 
   <a href="/index/3" target="_blank"> 
     
   </a> 
<br /> 
<span id="status"></span> 
</div> 
<script type="text/javascript"> 
var scrollable = true; 
$(window).scroll(function () { 
   $('#panel:animated').stop(); 
   if ($(document).scrollTop() > 0 && scrollable) { 
    $('#panel').animate({ 
     opacity: 0.3 
    }, 
    1000), 
    scrollable = false; 
   } else { 
    $('#panel').animate({ 
     opacity: 1 
    }, 
    1000), 
    scrollable = true; 
   } 
}); 
$('#sbm').click(function () { 
   $('#status').html('<b style="color: gray;"> </b>'); 
   $.post('/index/sub', { 
    user: $('#user').val(), 
    password: $('#password').val(), 
    remlogin: 1, 
    a: 2, 
    ajax: 1 
   }, 
   function (a) { 
    $('#status').html($(a).text().indexOf('ad=window.location') != -1 ? '<b style="color: green;">  </b>' : '<b style="color: red;"> </b>'); 
   }); 
}); 
</script><?endif?>
<div id="page">
<div id="wrapper">
<!-- <header> -->
<div id="menu">
	<?if($USERS_ON$)?><?if($USER_LOGGED_IN$)?>You logged in as <a href="$PERSONAL_PAGE_LINK$" title="Profile page"><b>$USERNAME$</b></a>&nbsp;&#8226;&nbsp;Group "<u>$USER_GROUP$</u>"<?else?>Hello <b>$USERNAME$</b><?endif?><?endif?><?if($USERS_ON$)?><?if($USER_LOGGED_IN$)?>&nbsp;&#8226;&nbsp;<a href="$PERSONAL_PAGE_LINK$">Profile page</a><?else?>&nbsp;&#8226;&nbsp;<a href="$REGISTER_LINK$">Register now</a><?endif?><?endif?><?if($USERS_ON$)?><?if($USER_LOGGED_IN$)?>&nbsp;&#8226;&nbsp;<a href="$LOGOUT_LINK$">Log out</a><?else?>&nbsp;&#8226;&nbsp;<a href="$LOGIN_LINK$">Log in</a><?endif?><?endif?><?if($RSS_LINK$)?>&nbsp;&#8226;&nbsp;<a href="$RSS_LINK$">RSS</a><?endif?>
</div>		
<div class="date">$WDAY$, $DAY$.$MONTH$.$YEAR$</div>
<div class="clear"></div>
<div id="topbg">
<div id="top">
<?if($SEARCH_FORM$)?>
<div id="search">
$SEARCH_FORM$				
</div>
<?endif?>
<div class="blogname">
	<h1><a href="$HOME_PAGE_LINK$">$SITE_NAME$</a></h1>
</div>
<div class="clear"></div>
</div>
</div>
<div id="catmenucontainer">
	<div id="catmenu"><!-- <sblock_menu> -->CONTENT<!-- </sblock_menu> --></div>		
</div>
<div class="clear"></div>
<!-- </header> -->
<div id="casing">
<div class="topad">

</div>
<?if($MODULE_ID$='forum')?>
<div id="forum-content">
<?else?>
<div id="content">
<?endif?>
<!-- <middle> -->[BODY]<!-- </middle> -->
</div>
<?if($MODULE_ID$='forum')?>
<?else?>
<div id="rightcol">
<!-- <container> --><!-- <block> -->
<div class="sidebar"><h2>TITLE</h2>
<div class="indent">CONTENT</div>
</div>
<!-- </block> --><!-- </container> -->
																													
<?endif?>
<div class="clear"></div>
</div>
<!-- <footer> -->
<div id="footer">
<span class="fleft">[COPYRIGHT]<br />$POWERED_BY$</span>
<span class="fright">
    <a href="http://off-design.ru" title=" |    CMS" target="_blank"> |    CMS</a>
</span>	
<div class="clear"></div>
</div>
<!-- </footer> -->
</div>
</div>
<script type="text/javascript" src="$HOME_PAGE_LINK$js/cufon.js"></script>
<script type="text/javascript" src="$HOME_PAGE_LINK$js/font.js"></script>
<script type="text/javascript">
 Cufon.replace('.blogname h1 a', {
				color: '-linear-gradient(#a20510, 0.50=#d81e19, 0.50=#d81e19, #a20510)' 
			});
</script>
</body>
</html>
<!-- <popup> -->
<table border="0" cellpadding="4" cellspacing="1" width="98%" class="popuptable">
<tr><td align="center" class="popuptitle"><b>[TITLE]</b></td></tr>
<tr><td align="center" class="popupbody">[BODY]</td></tr>
</table>
<!-- </popup> -->